<?php
$this->load->view("backend_header");
?>
<div id="main_content">
<div class="top_margin"></div>

<div class="homepage_mid_column">
<?php
$this->load->view("backend/topbar");
?>
<div class="top_margin"></div>
<b>待配送订单：</b>
<table border="1">
 <tr><td>订单号</td><td>订购者姓名</td><td>帐号</td><td>总价</td>
 <td>地址</td><td>手机</td><td>短号</td><td>下单时间</td></tr>
<?php foreach($orders as $order){ if($order->deliver_type==1){ ?>
    <tr>
      <td width="100px"><a href="<?=site_url()?>/backend/order_detail?order_id=<?=$order->id?>&go=yes"><?=$order->id?></a></td>
      <td width="100px"><?=$order->consignee?></td>
      <td width="100px"><?=$order->user_id?></td>
      <td width="70px"><?=$order->total_money?></td>
      <td width="150px"><?=$order->address?></td>
      <td width="150px"><?=$order->phone?></td>
      <td width="100px"><?=$order->short_phone?></td>
      <td width="200px"><?=$order->order_time?></td>
    </tr>
<?php } }?>
</table>

<br/>
<b>自取订单：</b>
<table>
 <tr><td>订单号</td><td>订购者姓名</td><td>帐号</td><td>总价</td>
 <td>地址</td><td>手机</td><td>短号</td><td>下单时间</td></tr>
<?php foreach($orders as $order){ if($order->deliver_type==0){ ?>
    <tr>
       <td width="100px"><a href="<?=site_url()?>/backend/order_detail?order_id=<?=$order->id?>&go=yes"><?=$order->id?></a></td>
      <td width="100px"><?=$order->consignee?></td>
      <td width="100px"><?=$order->user_id?></td>
      <td width="70px"><?=$order->total_money?></td>
      <td width="150px"><?=$order->address?></td>
      <td width="150px"><?=$order->phone?></td>
      <td width="100px"><?=$order->short_phone?></td>
      <td width="200px"><?=$order->order_time?></td>
    </tr>
<?php } }?>
</table>
</div>


<div class="bottom_margin"></div>
<div class="div-footer"><div class="div-footer-intl-links"></div>
<div class="div-footer-links"></div>
<?=anchor('bookiki/index', '首页');?> - <?=anchor('bookiki/about', '关于书易');?> - <?=anchor('bookiki/about_eng', 'About Bookiki');?> - <?=anchor('bookiki/faq', '使用帮助');?>
&nbsp;-&nbsp;©2009&nbsp;-&nbsp;
<a href="http://www.miibeian.gov.cn/">浙ICP备09067748号</a>
</div>  <!--div-footer-->


</div> <!--main_content-->

</div>  <!--end of body agent-->
</body>
</html>
